<?php

namespace app\admin\validate\system;

use think\Validate;

class Substation extends Validate
{
    protected $failException = true;

    /**
     * 验证规则
     */
    protected $rule = [
        'account' => 'require|max:20',
        'password' => 'require|min:6|max:16',
        'host' => 'require|max:255',
        'name' => 'require|max:255'
    ];

    /**
     * 提示消息
     */
    protected $message = [
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];

}
